package File;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class Demo15 {
    public static void main(String[] args) {
        try(Writer writer=new FileWriter("./test.txt",true)){
            BufferedWriter bufferedWriter=new BufferedWriter(writer);
            bufferedWriter.write("hello ,nimd");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
